<html>
    <head>
        <title><?php echo isset($title_for_layout)?$title_for_layout:"Seo Youtube code by Lantranduc@gnail.com"; ?></title>
        <?php echo $this->Html->css(array(
            'reset',
            'style',
            'jquery.countdown'
        )); ?>
        <?php echo $this->Html->script(array(
            'http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js',

        )) ?>

    </head>

    <body>
    <div id="main">
        <div id="banner">
            <div id="logo">
                <?php echo $this->Html->image('sy-icon/logo.png',array('alt'=>'logo','style'=>'padding-top:25px;')) ?>
            </div>

            <div id="user">
                <ul class="user">
                    <?php if($this->Session->check('user')){
                        $user=$this->Session->read('user');
                        ?>
                        <?php if($user['User']['type']==1){?>
                            <li><a href="<?php echo $this->Html->url(array('controller'=>'haioption/users','action'=>'index')); ?>">Hai Option</a></li>
                        <?php } ?>
                        <li><a href="<?php echo $this->Html->url(array('controller'=>'users','action'=>'profiles')); ?>">Profiles</a></li>
                        <li><a href="<?php echo $this->Html->url(array('controller'=>'users','action'=>'mylink')) ?>">My Links</a></li>
                        <li><a href="<?php echo $this->Html->url(array('controller'=>'users','action'=>'logout')); ?>">Logout</a></li>
                    <?php }else{ ?>
                        <li><a href="<?php echo $this->Html->url(array('controller'=>'users','action'=>'register')); ?>">Register</a></li>
                        <li><a href="<?php echo $this->Html->url(array('controller'=>'users','action'=>'login/mylink')); ?>">Login</a></li>
                   <?php } ?>
                </ul>
            </div>
        </div>
        <div id="ads1">
            <?php echo $this->Html->image('sy-ads/ads.png',array('alt'=>'quang cao')) ?>
            <?php echo $this->Html->image('sy-ads/ads.png',array('alt'=>'quang cao')) ?>
        </div>
        <?php echo $this->fetch('content'); ?>
        <div id="ads2">
            <?php echo $this->Html->image('sy-ads/ads.png',array('alt'=>'quang cao')) ?>
            <?php echo $this->Html->image('sy-ads/ads.png',array('alt'=>'quang cao')) ?>
        </div>
        <div class="clear"></div>
        <div id="footer"></div>
    </div>
    </body>
</html>